﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.WindowsAzure.StorageClient;

namespace Net.SyntaxC4.WindowsAzure.EmailQueue.BLL
{
    public class Globals
    {
        // Queue and Blob Names must be Valid DNS Entries
        // Cannot Contain Capital Letters or Underscores
        public const string QueueStorageName = "netsyntaxc4windowsazureemailqueue";
        public const string BlobStorageName = "netsyntaxc4windowsazureemailblob";
        public const string QueueStorageConnectionString = "QueueStorageConnectionString";
        public const string BlobStorageConnectionString = "BlobStorageConnectionString";

        public static string BuildKey(object dataItem)
        {
            TableServiceEntity item = dataItem as TableServiceEntity;
            return string.Format("{0}|{1}", item.PartitionKey, item.RowKey);
        }
    }
}
